'use strict';
const {getTrainByTraincode} = require('mobile12360')

exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event);
	// const result = await getTrainByTraincode('65000C680900', '2023-12-30');
	const result = await getTrainByTraincode(event.trainno, event.date);
	//返回数据给客户端
	return result
};
